package com.jtech.together.mvp.contract;

import com.jtech.together.mvp.base.BaseContract;

import java.util.List;

import cn.bmob.newim.bean.BmobIMConversation;
import cn.bmob.newim.bean.BmobIMUserInfo;

/**
 * 消息页面
 * Created by wuxubaiyang on 2017/5/10.
 */
public interface MessageContract {
    interface Presenter extends BaseContract.Presenter {
        void acceptAddFriend(BmobIMConversation conversation, BmobIMUserInfo userInfo, String message);

        void loadAllConversation();
    }

    interface View extends BaseContract.View {

        void loadSuccess(List<BmobIMConversation> conversations);

        void loadFail(String error);

        void operateSuccess();

        void operateFail(String error);
    }
}